package com.eds.mall.product.feign;

import com.eds.common.dto.SkuReductionDTO;
import com.eds.common.dto.SpuBoundsDTO;
import com.eds.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "mall-coupon")
public interface CouponService {

    @PostMapping("coupon/skufullreduction/saveinfo")
    R saveFullReductionInfo(@RequestBody SkuReductionDTO dto);

    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    R saveSpuBounds(SpuBoundsDTO spuBoundsDTO);
}
